import request from '@/utils/request'

// 查询收款单列表
export function listBizPayment (query) {
  return request({
    url: '/biz/bizPayment/list',
    method: 'get',
    params: query
  })
}


// 新增收款单
export function addBizPayment (data) {
  return request({
    url: '/biz/bizPayment',
    method: 'post',
    data: data
  })
}
// 收款单审核
export function bizPaymentAudit (id,status) {
  return request({
    url: `/biz/bizPayment/audit/${id}:${status}`,
    method: 'get',
  })
}

// 修改收款单
export function updateBizPayment (data) {
  return request({
    url: '/biz/bizPayment',
    method: 'put',
    data: data
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizPayment/getInitData/' + dictTypes,
    method: 'get'
  })
}

// 删除收款单
export function delBizPayment (id) {
  return request({
    url: '/biz/bizPayment/' + id,
    method: 'delete'
  })
}
